// Domien Nowicki
#include "QtRobotSpawnAnimation.h"

QtRobotSpawnAnimation::QtRobotSpawnAnimation(): robot(0)
{
}

QtRobotSpawnAnimation::QtRobotSpawnAnimation(const QtRobotSpawnAnimation& rhs): QtAnimationCommand(rhs), robot(rhs.robot)
{
}

QtRobotSpawnAnimation::~QtRobotSpawnAnimation()
{
}

void QtRobotSpawnAnimation::SetRobot(QtRobotSprite* receiver)
{
	robot = receiver;
}

void QtRobotSpawnAnimation::Execute()
{
	if (robot)
	{
		robot->Spawn();
	}
}

QtAnimationCommand* QtRobotSpawnAnimation::Clone() const
{
	return new QtRobotSpawnAnimation(*this);
}
